The real-time hand and object recognition for virtual interaction

Recognizing hand-object interactions presents a significant challenge in computer vision. It arises due to the varying nature of hand-object interactions. Moreover, estimating the 3D position of a hand from a single frame can be problematic, especially when the hand obstructs the view of the object from the observer’s perspective. In this article, we present a novel approach to recognizing objects and facilitating virtual interactions, using a steering wheel as an illustrative example. We propose a real-time solution for identifying hand-object interactions in eXtended reality (XR) environments. Our approach relies on data captured by a single RGB camera during a manipulation scenario involving a steering wheel. Our model pipeline consists of three key components: (a) a hand landmark detector based on the MediaPipe cross-platform hand tracking solution; (b) a three-spoke steering wheel model tracker implemented using the faster region-based convolutional neural network (Faster R-CNN) architecture; and (c) a gesture recognition module designed to analyze interactions between the hand and the steering wheel. This approach not only offers a realistic experience of interacting with steering-based mechanisms but also contributes to reducing emissions in the real-world environment. Our experimental results demonstrate the natural interaction between physical objects in virtual environments, showcasing precision and stability in our system.


INTRODUCTION
In recent years, the rapid advancement of immersive technologies has revolutionized the way humans interact with virtual environments.A fundamental aspect enhancing this interaction is real-time hand and object recognition, crucial for fostering natural and intuitive information exchange.
The development of virtual and augmented realities has expanded the scope of virtual interaction beyond traditional human-computer interfaces, enabling users to interact with digital content in unique ways.Accurate recognition and interpretation of hand gestures

RELATED WORKS
The fourth wave of industrialization has accelerated the rapid development and integration of various technological tools into our daily lives, significantly impacting the demand for enhanced interactions between users and digital products and devices.This surge in technology has led to the evolution of new approaches in human-computer interaction (HCI).Furthermore, with the widespread adoption of artificial intelligence across various industries, HCI has also undergone significant transformations.
While traditional input systems remain prevalent, there is a noticeable shift towards interfaces that reduce user effort.One such example is hand-object interaction tracking.
In recent decades, extensive research has been conducted in the field of action recognition using deep learning, resulting in the creation of numerous deep learning models and datasets for training and testing purposes.Notable datasets include HMDB51, Sports1M, YouTube8, Activity, among others.A comprehensive overview of the development history of deep learning in hand-object interaction recognition can be found in Zhu et al. (2020), where the authors analyze over 200 projects, methods, and models in this field.
The approaches mentioned above for utilizing specific equipment and cameras vary depending on the application.For instance, virtual reality (VR) often relies on a variety of controllers, such as joysticks, gamepads, VR gloves, and other similar devices.This emphasis on user input is crucial as VR operates in a virtual environment largely isolated from the real world, making user input the primary consideration.
Conversely, in the context of augmented reality (AR) and mixed reality (MR), where virtual objects are integrated into the real environment alongside the user, it becomes essential to account for all physical objects.To tackle this challenge, Microsoft Kinect sensors and cameras are frequently employed as they enable observation not only of the user but also of the physical surroundings.Some systems, such as the Microsoft HoloLens 2 and Oculus Quest 2, utilize built-in cameras capable of tracking the user's hands.
In this regard, Sakamoto et al. ( 2020) conducted a study focusing on user interactions with virtual objects through fundamental manipulations, including creating, deforming, moving, and combining these virtual entities.To facilitate these interactions, they utilized web cameras, the Leap Motion Controller, and a computer.Overall, their approach garnered positive feedback, as reflected in questionnaire responses.Users expressed that the manipulation method was intuitive and easy to grasp, noting that their hand movements were accurately reflected in the system.
Some works demonstrate innovative approaches to interaction within virtual environments, significantly reducing user effort.Rehman, Ullah & Khan (2023) propose four techniques that rely on the pose of a single fingertip.It makes interaction efficient requiring minimal learning effort for users.
This research focuses on a real-time hand gesture recognition system designed for dynamic applications.Utilizing a webcam, the system captures hand movements and translates them into specific commands.The authors emphasize the significance of realtime processing and user error tolerance in such systems (Rautaray, 2012).
In their study, Kim, Kim & Yoo (2013) describe the development of a hand-gesturebased user interface designed for interacting with virtual objects in three-dimensional (3D) environments.The system enhances the accuracy and flexibility of virtual object control by employing various filtering operations on sequences of hand-gesture images captured by the Kinect sensor.Hand gesture events are processed using callback and delegate functions.
In their research, Wu et al. (2020) utilized Hand Pose Estimation to predict the positions of hand joints from images.They developed a system capable of estimating hand poses in 3D space using depth images, primarily for VR applications.Their approach, relying on convolutional neural networks (CNN), effectively addressed the occlusion problem and could predict joint positions even in complex scenarios, including bare hands and hands manipulating various objects.
These studies highlight the importance of recognizing hand manipulation actions within XR applications.Such recognition enhances interaction by making it more intuitive and natural, with high performance.However, it is worth noting that these approaches typically require additional equipment, such as specialized controllers or sensors.
An alternative solution, as suggested, is the utilization of cameras, which has the potential to eliminate the need for extra hardware, offering a more accessible and convenient approach to XR interaction.
Thus, cameras enable the capturing and processing of images from the surrounding environment to define interactions.The advent of wearable camera devices has facilitated the study of human and object interaction from a first-person perspective, known as egocentric action recognition.This advancement has spurred numerous research efforts and the development of additional datasets (Damen et al., 2020a;Damen et al., 2020b).
Furthermore, as the use of extra devices decreases, additional gestures are gradually being removed from virtual environment interaction (Raees et al., 2021).The authors propose the thumb inclination method of manipulation within created media.
In the realm of egocentric action recognition, there is a special emphasis on comprehending the dynamics of human hands and their interaction with objects.Kwon et al. ( 2021) have highlighted certain limitations in existing datasets and studies, particularly the lack of a comprehensive understanding of actions in 3D.
The recordings captured by egocentric cameras are rich in complex information, including object tracking and hand pose estimation.However, these videos are susceptible to challenges like background clutter and occlusion due to the constantly changing perspective of the camera wearer.
To tackle these issues, various approaches have been proposed.One notable method is the dense trajectories approach, which incorporates head motion as a form of motion compensation (Li, Ye & Rehg, 2015).This technique helps mitigate the impact of background clutter and occlusion, enhancing the robustness of egocentric video analysis.
Another challenge revolves around the limitations of existing action recognition datasets.Most of them provide data for abstract objects represented as cuboids (Sridhar et al., 2016;Garcia-Hernando et al., 2018;Hampali et al., 2020;Hasson et al., 2019).This issue arises because the human hand can perform entirely different actions with different types of objects.Therefore, it is crucial to approach action recognition in terms of object classes.Kwon et al. (2021) proposed a method for recognizing first-person two-hand interactions.The authors developed the Two Hands Object Manipulation (H2O) dataset, which facilitates pose prediction and has demonstrated promising results.
Given the expansive scope and complexity of the subject matter, as well as the existing methodologies and their limitations, this study delves into a specific case: the recognition of steering wheel manipulation.Its practical application is particularly valuable in autopilot systems, where hand analysis enables the prediction of preparatory movements for maneuvers.Analyzing the driving process carries the potential to mitigate the consequences of distracted driving, a common cause of road accidents (Craye & Karray, 2015).Moreover, it holds relevance in military simulators for refining manipulation skills across diverse types of machinery.
Finally, hand tracking and its interaction with the vehicle control system represent significant steps toward the transition to natural user interfaces (Hepperle et al., 2019), enabling drivers to control the vehicle using only hand gestures.Borghi et al. (2018) have introduced a new dataset for hand recognition and tracking in driving conditions, simplifying the prediction of drivers' behavior, and fostering a more user-friendly and secure human-car interaction.Given these challenges, this article outlines its approach as follows: − development of an occlusion-free hand tracking and pose estimation module; − implementation of a steering wheel tracking solution.− analysis of the interaction between the hand and the steering wheel within the context of driving.
While the proposed methods offer innovative approaches to virtual reality interaction using minimal tools, real-time gesture recognition still demands significant computational resources and powerful algorithms.

HAND POSE ESTIMATION
Pose estimation can be achieved through various tools and methods, as discussed earlier.
One method involves hand pose estimation, where heatmap images are analyzed using CNN architecture regression (Iqbal et al., 2018).Ge et al. (2019) proposed reconstructing the complete 3D mesh of the hand's surface.
To address video frame errors such as occlusion, low resolution, and noise, a modelbased approach utilizing the MANO model was employed to capture hand pose and shape (Romero, Tzionas & Black, 2022).Subsequently, several enhancements in the model-based approach were implemented through linear interpolation calculations for the surface mesh of the hand model (Hasson et al., 2019).Thus, Boukhayma, Bem & Torr (2019) suggest compiling synthetic data for model pre-training to improve the accuracy of hand pose estimation.
A unique approach to real-time hand tracking and pose estimation was developed by a team of researchers at Google AI.Integrated into the MediaPipe framework, this solution simplifies 2.5D landmark predictions and relies on basic equipment, making the process nearly effortless (Zhang et al., 2020).The approach involves two models working together: (1) the palm detector, also known as BlazePalm, which takes a full image from a video frame and returns an oriented bounding box; (2) the hand landmark model, which identifies 21 key points on the hand in 3D space, enabling the reconstruction of the hand skeleton (Fig. 1).
However, action recognition from a first-person perspective presents several distinct challenges such as rapid camera movement, extensive occlusions, and background clutter (Li, Ye & Rehg, 2015).Finally, a limitation in previous research is the lack of exploration into the reasoning behind hand and steering wheel actions.
The article focuses on developing a model for interactions between real objects and a virtual environment, using a steering wheel as an example.An RGB camera is utilized for gesture tracking, enabling real-time object recognition.The proposed method demonstrates that achieving intuitive and efficient interaction within virtual reality can be both accessible and straightforward in terms of equipment.

MATERIALS & METHODS
This section outlines the equipment and the pipeline for the project, aiming to create an affordable, straightforward, yet efficient system for recognizing hand-object interactions.The equipment setup consists of basic devices, including the Fanatec Porsche 911 GT2 gaming wheel, Acer C24 monitor, and an integrated RGB web camera.This toolset is based on the existing equipment of the research laboratory at the university.Figure 2 provides an overview of the proposed pipeline, where the model captures synchronized video frames from a single RGB camera.
To detect the initial steering wheel location, we utilize a faster region-based convolutional neural network (Faster R-CNN).This choice was made due to its suitability for detecting specific areas of interaction and its flexibility for training.The implementation of the architecture involves the following steps: (1) Extraction of a feature map from an image: The resulting feature map with dimensions cH/6 W/6 is generated through the application of a 3×3 convolutional layer.
Padding is set to one to ensure that the final matrix retains its size.Each cell (i, j) of the feature map corresponds to a vector of dimension c.
(2) Generation of hypotheses based on the map obtained of object signs (Region Proposal Network): This step involves determining approximate coordinates and identifying the presence of an object belonging to the steering wheel class.
(3) Matching the coordinates of the hypotheses using regions of interest (RoI) with the feature map obtained in the first step.
(4) Classification of hypotheses, specifically for identifying the steering wheel class, and optional refinement of coordinates (though this step may not always be applied).

HAND TRACKING
The MediaPipe hand landmark architecture incorporates four input parameters: real-world images, synthetic images, hand presence, and handedness hypothesis.
Upon palm detection across the entire image, the model generates a consistent internal hand pose representation, producing three outputs: (a) 21 hand landmarks, including relative depth, x, and y coordinates, as illustrated in Fig. 3; (b) an indicator estimating the presence of a hand in the given image; (c) binary classification for determining handedness, distinguishing between right and left hands, for example.
By supplying the precisely cropped palm image to the hand landmark model, the necessity for data augmentation, such as rotations, translations, and scaling, is significantly reduced.This approach allows the network to focus most of its capacity on enhancing landmark localization accuracy.
In a real-time tracking scenario, a bounding box is extrapolated from the landmark prediction of the previous frame, which serves as input for the current frame.This approach eliminates the need to repeatedly apply the detector on every frame.Instead, the detector is utilized only on the initial frame or when the hand prediction indicates that the hand has been lost.

STEERING WHEEL DETECTOR
The search for the steering wheel location relies on the model depicted in Fig. 4, which is based on key point detection.Due to the absence of dedicated steering wheel datasets, we collected 112 images specifically for this task.These images encompass various situational poses both inside and outside the car.To align with the RCNN architecture, we utilized the YoloV5 method for annotating each image.Each annotated image in the dataset contains the following information: − bounding box location: each object is enclosed within a bounding box, defined by its bottom-right and top-left corners in [x1, y1, x2, y2 ] format, which serves as an object segmentation tool within the image; In steps 1-5, the algorithm initializes.
Step 8 involves loading a video stream.Steps 10-12 involve retrieving frames from the video stream.In step 13, the frame blob is applied to the CNN, as discussed in Section 2. Finally, steps 15-23 visualize bounding boxes and key points based on detections.

STEERING WHEEL MODEL
After the steering wheel detection, the three-spoked model accurately determines the steering wheel coordinates within the detected bounding box using regression.This model consists of distinct scopes: the grip area, left/right/bottom joint, and the middle part.
In this stage, the steering wheel's elliptical shape is transformed into a circle through a geometric homography transformation from the world coordinate system.The subsequent geometric computation addresses several key challenges.One notable challenge is the unknown initial position of the observed object.As a result, 2D homography involves eight degrees of freedom, requiring the calculation of the H matrix (3×3) to execute a valid geometric transformation.
The system includes a single RGB camera for capturing video frames and a three-spoke steering wheel (Fig. 5).To conduct experiments, approximately 200 different video frames were captured from various angles to assess the system's accuracy and performance.The distribution of frames for each variation is as follows: left hand-72, right hand-72, both hands-56.However, the dataset is planned to be expanded later.

RESULTS
This work presents a method with a low error margin and establishes a strong baseline for joint pose estimation of two hands interacting with an object, specifically a steering wheel in this case.Table 1 compares techniques for various input modalities for right, left, and two-hand-object pose estimation.The accuracy rates for each case are 33.61%,52.70%, and 58.92%, respectively.
Figure 6 provides qualitative examples of pose predictions.This approach estimates the pose of two hands interacting with objects from a single RGB image.
In this study, the MediaPipe hand landmark detection pipeline was utilized to track hand movements.Concurrently, the Faster R-CNN architecture was employed to identify the object's position in the image, resulting in a bounding box around the steering wheel.Subsequently, steering wheel recognition is initiated using the specified three-spoke steering wheel mode.Finally, the position of the hand relative to the steering wheel is calculated: if the hand is within the grip region, the interaction recognition module is activated.

LIMITATIONS
While this study demonstrates the feasibility of using a single-camera system to recognize hand-object interactions in driver-steering wheel scenarios, it is important to acknowledge several limitations and opportunities for future work.Despite achieving accuracy rates ranging from 33.61% to 58.92%, further improvements are necessary to ensure robust realworld applications.To enhance generalization to diverse user experiences, it is important to expand the training dataset to encompass a broader range of hand poses, lighting conditions, user characteristics, and steering wheel designs.Although the current system effectively detects and localizes hands, recognizing and interpreting complex hand gestures for enhanced in-vehicle interactions requires further development.Future research will focus on expanding the vocabulary of gestures.

DISCUSSION
This article introduces a pipeline for recognizing the interaction between a hand and a steering wheel, processing synchronized frames from the video stream.The process involves two main stages: first, using the palm model landmark to track hands, and then estimating the position of the steering wheel based on the model.The proposed method enables real-time detection and localization of the driver's hands.Currently, the model achieves an accuracy rate of approximately 33.61% for the left hand, 52.7% for the right hand, and 58.92% for both hands.However, future expansion of the dataset will enable further model training and performance improvement, including handling frames with varying lighting conditions.The results demonstrate that this approach ensures hand-object interaction recognition independent of complex and costly installations and devices, making use of simple single cameras.
The approach presented in the article showcases the feasibility and effectiveness of the proposed method, enabling the implementation of natural interactions with a high degree of precision and stability.There are ample opportunities for future research, such as the analysis of driver behavior.Ultimately, this method represents a significant step towards innovative human-vehicle interaction systems, where users can perform gestures and interact with the car without the need for physical manipulation of the steering wheel.

CONCLUSIONS
The current state of hand-object recognition is still in the development stage, with new interfaces and human-computer interaction approaches emerging in the market.A